package com.wanbangee.marksystem.service;

import java.util.List;
import java.util.Map;

import org.springframework.web.bind.annotation.RequestBody;

import com.alibaba.fastjson.JSONArray;
import com.wanbangee.marksystem.entities.UGrade;
import com.wanbangee.marksystem.entities.UGradeSubjectRelation;
import com.wanbangee.marksystem.entities.USubject;

public interface UGradeSubjectRelationService {
	/**
	 * 根据学校与年级id查询学科service
	 * @param schId
	 * @param subId
	 * @return
	 */
	public List<UGradeSubjectRelation> selectSubjectBygraId(int schId, int graId);
	/**
	 * 根据传入的list集合学科年纪关系表插入到年级中service
	 * @param list
	 * @return
	 */
	public Map<String, Object> insertSubjectIntoGrade(@RequestBody JSONArray jsonArray);
	/**
	 * 根据学校id查询年级
	 * @param schId
	 * @return
	 */
	public List<UGrade> selectGradeBySchId(int schId);
}